from model.common import PageModel

class OnlineLogReq:
    def __init__(self, device_num: str, page_model: PageModel):
        self.device_num = device_num
        self.page_model = page_model

class OnlineLogResp:
    def __init__(self, code: int, message: str, data: any, timestamp: int):
        self.code = code
        self.message = message
        self.data = data
        self.timestamp = timestamp

class OnlineLogData:
    def __init__(self, count: int, list: list[any]):
        self.count = count
        self.list = list

class OnlineLogDetail:
    def __init__(self, duration: str, last_offline_code: int, last_offline_reason: str, state: str, time: str):
        self.duration = duration
        self.last_offline_code = last_offline_code
        self.last_offline_reason = last_offline_reason
        self.state = state
        self.time = time